This tutorial is meant for all People who need to protect their SWEPs (Scripted Weapons) of usuage for Props (like CopyGun,Gravity Remover, Masster Gun etc), so nobody can modify Props of other players!

Open your SWEP file, which is now call "my_swep.lua"

Add the following code nearly at the beginning of the File
	
	swep_is_owner = true;
	function SWEPisOwnerOfThisProp(bool_val)
		if(bool_val == true) then
			swep_is_owner = true
		else
			swep_is_owner = false
		end
	end
	
Now, scroll down to the "function onPrimaryAttack( )" and or "function onSecondaryAttack( )"

Add the following code immediately after these lines, mentioned above:

	_TraceLine(_PlayerGetShootPos(Owner),_PlayerGetShootAng(Owner), 4096, Owner);
	_RunString("prop_protectionSWEPWrapper(".. Owner ..",".._TraceGetEnt()..",".. MyIndex ..",\"SWEPisOwnerOfThisProp\")")
	if(swep_is_owner == false) then return false end;
	
This will start a Traceline to the prop. If the player is the Owner of it, PropProtector will return "true" to the SWEP an tell it, that the Player can use it. Otherwise it returns false and tells the SWEP "false". Now, the player can't use the SWEP on the prop.